package com.huaxin.hxcloud.find;

import com.huaxin.common.Entity.FindSearchBean;

/**
 * Created by guokailin on 2017/5/15.
 * 发现模块中搜索结果的封装类
 * 搜索结果只能由构造传入，只能通过get方法获取
 */

public class FindSearchResultBean {
    //搜索结果类型，有0、1、2、3
    private int type;
    private String title;
    private FindSearchBean.UserArrayBean user;//用户
    private FindSearchBean.InformationArrayBean information;//资讯
    private FindSearchBean.QuestionArrayBean question;//问题

    public FindSearchResultBean(int type, String title) {
        this.type = type;
        this.title = title;
    }

    public FindSearchResultBean(int type, FindSearchBean.UserArrayBean user) {
        this.type = type;
        this.user = user;
    }

    public FindSearchResultBean(int type, FindSearchBean.InformationArrayBean information) {
        this.type = type;
        this.information = information;
    }

    public FindSearchResultBean(int type, FindSearchBean.QuestionArrayBean question) {
        this.type = type;
        this.question = question;
    }

    public int getType() {
        return type;
    }

    public String getTitle() {
        return title;
    }

    public FindSearchBean.UserArrayBean getUser() {
        return user;
    }

    public FindSearchBean.InformationArrayBean getInformation() {
        return information;
    }

    public FindSearchBean.QuestionArrayBean getQuestion() {
        return question;
    }
}
